package com.yuanfeng.payment.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName PayDistributorEarningsController
 * @Description
 * @Author hyq
 * @Date 2023/7/14 13:22
 * @Version 1.0
 **/
@RestController
@RequestMapping("pay/distributorEarnings")
public class PayDistributorEarningsController extends BaseController{

    /**
     * 根据结算单号查询收益列表
     * @param map
     * @return
     */
    @PostMapping("/query/record")
    public ResponseResult queryRecord(@RequestBody Map<String, Object> map) {
        ResponseResult result=payDistributorEarningsService.queryRecord(map);
        return result;
    }


    /**
     * 审核结算
     * @param param
     * @return
     */
    @PostMapping("/statement/verify")
    public ResponseResult verifyStatement(@RequestBody Map<String, Object> param) {
        ResponseResult result=payDistributorEarningsService.verifyStatement(param);
        return result;
    }
}
